package com.opennetexam.manager.socketfactory;

import com.opennetexam.manager.common.ApplicationContextProvider;
import com.opennetexam.manager.enums.SocketType;
import com.opennetexam.manager.socketfactory.impl.SocketTakePhoto;

/**
 * @Description Socket 工厂
 * @author 奶茶
 * Created by on 2018/10/8 9:06.
 */
public class SocketFactory {

    public static SocketServerBusinessProcess newInstance(Integer type){
        //客户端主动拍照处理
        if(type.equals(SocketType.TakePhoto.getPrefix())){
            return ApplicationContextProvider.getBean(SocketTakePhoto.class);
        }
        return null;
    }

}
